package com.woniuxy.entitys;

import java.io.Serializable;

/**
 * diet
 * @author 
 */
public class Diet implements Serializable {
    private Integer id;

    private String breakfast;

    private String lunch;

    private String dinner;

    private String beiyong;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBreakfast() {
        return breakfast;
    }

    public void setBreakfast(String breakfast) {
        this.breakfast = breakfast;
    }

    public String getLunch() {
        return lunch;
    }

    public void setLunch(String lunch) {
        this.lunch = lunch;
    }

    public String getDinner() {
        return dinner;
    }

    public void setDinner(String dinner) {
        this.dinner = dinner;
    }

    public String getBeiyong() {
        return beiyong;
    }

    public void setBeiyong(String beiyong) {
        this.beiyong = beiyong;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Diet other = (Diet) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getBreakfast() == null ? other.getBreakfast() == null : this.getBreakfast().equals(other.getBreakfast()))
            && (this.getLunch() == null ? other.getLunch() == null : this.getLunch().equals(other.getLunch()))
            && (this.getDinner() == null ? other.getDinner() == null : this.getDinner().equals(other.getDinner()))
            && (this.getBeiyong() == null ? other.getBeiyong() == null : this.getBeiyong().equals(other.getBeiyong()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getBreakfast() == null) ? 0 : getBreakfast().hashCode());
        result = prime * result + ((getLunch() == null) ? 0 : getLunch().hashCode());
        result = prime * result + ((getDinner() == null) ? 0 : getDinner().hashCode());
        result = prime * result + ((getBeiyong() == null) ? 0 : getBeiyong().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", breakfast=").append(breakfast);
        sb.append(", lunch=").append(lunch);
        sb.append(", dinner=").append(dinner);
        sb.append(", beiyong=").append(beiyong);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}